import request from '@/utils/request'

// 查询售后订单列表
export function listOrderAfter(query) {
  return request({
    url: '/system/orderAfter/list',
    method: 'get',
    params: query
  })
}

// 查询售后订单详细
export function getOrderAfter(id) {
  return request({
    url: '/system/orderAfter/' + id,
    method: 'get'
  })
}

// 新增售后订单
export function addOrderAfter(data) {
  return request({
    url: '/system/orderAfter',
    method: 'post',
    data: data
  })
}

// 修改售后订单
export function updateOrderAfter(data) {
  return request({
    url: '/system/orderAfter',
    method: 'put',
    data: data
  })
}

// 删除售后订单
export function delOrderAfter(id) {
  return request({
    url: '/system/orderAfter/' + id,
    method: 'delete'
  })
}

// 修改售后状态
export function updateOrderAfterStatus(data) {
  return request({
    url: '/system/orderAfter/updateOrderAfterStatus',
    method: 'post',
    data: data
  })
}
